<?php

namespace app\common\validate;

use think\Validate;

class Maintains extends Validate
{
    protected $rule =   [
        'openid'  => 'require|max:100',
        'appearance' => 'require',
        'tel' => 'require',
        'addr' => 'require',
        'machineid' => 'require',
    ];

    protected $message  =   [
        'openid.require' => '非法信息添加',
        'tel.require' => '缺少电话',
        'addr.require' => '缺少地址',
        'appearance.require' => ' 故障表现内容',
        'machineid.require' => '设备编号必须',
    ];

}